package br.com.imagechess.player;

import org.junit.Test;
import static org.junit.Assert.*;

public class ChessPlayerBehavior {
	@Test
	public void shouldMovePawn() throws Exception {
		// given
		ChessGame game = new ChessGame();
		
		// when
		game.move("A2","A3");
		
		// then
		Piece piece = game.getPiece("A3");
		assertEquals("Pawn",piece.getName());
	}
	
	@Test
	public void shouldPerformMultipleMoves() throws Exception {
		ChessGame game = new ChessGame();
		game.move("E2 E4, E7 E5; F1 C4, B8 C6; D1 F3, A7 A6; F3 F7");
		Piece p = game.getPiece("F7");
		assertEquals("Queen",p.getName());
	}
}
